﻿<%@ Page Title="" Language="C#" MasterPageFile="~/UFSSMaster.Master" AutoEventWireup="true" CodeBehind="viewmessages.aspx.cs" Inherits="UFSSWebApp.viewmessages" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style3
        {
            width: 16px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="PageName" runat="server">
    Friend / Messages
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="Body" runat="server">
    <div class="Box" style="width:auto">
        <table>
            <tr>
                <td><asp:ListBox ID="lstMessage" runat="server" Height="194px" Width="145px" 
                        onselectedindexchanged="lstMessage_SelectedIndexChanged" 
                        AutoPostBack="True"></asp:ListBox></td>
                <td align="left" class="style3" valign="top">
                    <table style="width: 512px">
                        <tbody>
                            <tr>
                                <td><b>From: </b></td>
                                <td><asp:TextBox ID="txtFrom" runat="server" ReadOnly="True" Enabled="False" 
                                        Width="200px"></asp:TextBox></td>
                            </tr>
                            <tr>
                                <td style="font-weight: 700">Date Sent: </td>
                                <td>
                                    <asp:TextBox ID="txtDateSent" runat="server" Enabled="False" ReadOnly="True" 
                                        Width="200px"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td><b>Subject: </b></td>
                                <td><asp:TextBox ID="txtSubject" runat="server" Width="433px" ReadOnly="True" 
                                        Enabled="False"></asp:TextBox></td>
                            </tr>
                            <tr>
                                <td><b>Message: </b></td>
                                <td><asp:TextBox ID="txtMessage" runat="server" Height="115px" Width="433px" 
                                        ReadOnly="True" TextMode="MultiLine"></asp:TextBox></td>
                            </tr>
                        </tbody>
                    </table>
                </td>
            </tr>
            <tr>
                <td></td>
                <td><asp:Label ID="lblError" runat="server" ForeColor="Red"></asp:Label></td>
            </tr>
            <tr>
                <td><asp:Button ID="btnDelete" runat="server" Text="Delete Message" 
                        onclick="btnDelete_Click" /></td>
                <td><asp:Button ID="btnReply" runat="server" Text="Reply" onclick="btnReply_Click" 
                        Width="64px" /></td>
            </tr>
        </table>
    </div>
</asp:Content>
